package com.grad.webstudy.constants;

/**
 * @Description: 有关redis的常量类
 * @Author: zjf
 * @Date: 2020/3/31 8:56.
 */
public class RedisConstants {

    public static final long TOKEN_EXPIRES_MINUTES = 30;//设置redis过期时间30分钟,单位为分钟


    public static final String REDIS_USER_KEY_PREFIX = "redis:user";
    public static final String REDIS_COURSE_KEY_PREFIX = "redis:course";
    public static final String REDIS_COURSECHAPTER_KEY_PREFIX = "redis:courseChapter";
    public static final String REDIS_COURSEDETAIL_KEY_PREFIX = "redis:courseDetail";
    public static final String REDIS_COURSETYPE_KEY_PREFIX = "redis:courseType";
    public static final String REDIS_ROLE_KEY_PREFIX = "redis:role";
    public static final String REDIS_APPLY_KEY_PREFIX = "redis:apply";
    public static final String REDIS_LOG_KEY_PREFIX = "redis:log";


    public static final String REDIS_HOT_WORD = "hotWord";

    public static final String REDIS_TOTAL_VIIST_KEY_FORMAT = "yyyy-MM-dd";//网站访问量，以日期作为key的格式化形式
    public static final String REDIS_TOTAL_KEY="totalKey";

}
